<template>
  <div>
      <h2>子组件部分</h2>
      {{msg}}
      <button v-on:click="sendToFather">click sendToFather</button>
  </div>
</template>
<script>
export default {
  props:['msg'],
methods:{
   sendToFather:function(){
this.$emit('listenToChildEvent',' I am child send to father')
   } 
}
}
</script>
